home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / docp_1_1.zip / DOCP.H < prev    next >
Text File  |  1992-04-29  |  3KB  |  94 lines

  1.  
  2. #define HASH_TAB_SIZE 211
  3.  
  4. typedef struct entry {
  5.     char name[14];
  6.     unsigned fdate;
  7.     unsigned ftime;
  8.     char attr;
  9.     char copied;
  10.     struct entry *next;
  11. } ENTRY;
  12.  
  13. typedef struct {
  14.     int mo;
  15.     int day;
  16.     int year;
  17.     int mode;
  18. } DATE;
  19.  
  20. typedef struct {
  21.     int min;
  22.     int hour;
  23.     int mode;
  24. } TIME;
  25.  
  26. typedef struct date_node{
  27.     int fdate;
  28.     int mode;
  29.     struct date_node *next;
  30. } DATE_NODE;
  31.  
  32. typedef struct time_node{
  33.     int ftime;
  34.     int mode;
  35.     struct time_node *next;
  36. } TIME_NODE;
  37.  
  38.  
  39. /* options */
  40.  
  41. #define O_FROM_FILE 1
  42. #define O_INTERACTIVE 2
  43. #define O_CHECK 4
  44. #define O_COPY_ALL 8
  45. #define O_RECURSIVE 0x10
  46. #define O_SOURCE_DIR 0x20
  47. #define O_TARGET_DIR 0x40
  48. #define O_VERBOSE 0x80
  49. #define O_X_VERBOSE 0x100
  50. #define O_MOVE 0x200
  51. #define O_COPY_IF_SRC_OLDER 0x400
  52. #define O_CP_IF_SRC_NEWER 0x800
  53. #define O_COPY_HIDDEN 0x1000
  54. #define O_DATE_CHECK 0x2000
  55. #define O_TIME_CHECK 0x4000
  56. #define O_GATHER 0x8000
  57. #define O_BATCH 0x10000L
  58. #define O_FROM_STDIN 0x20000L
  59. #define O_TARGET_REMOVEABLE 0x40000L
  60. #define O_ARCHIVE 0x80000L
  61. #define O_LARGEFILES 0x100000L
  62. #define O_ZAPTARGET 0x200000L
  63. #define O_JOIN 0x400000L
  64.  
  65.  
  66. #define USAGE_MESS "docp - Directory-Oriented CoPy, version 1.1\n\
  67. Copyright (c) 1992, Roy Bixler\n\
  68.     \"docp\" comes with ABSOLUTELY NO WARRANTY; for details type `docp -?'.\n\
  69.     This is free software, and you are welcome to redistribute it\n\
  70.     under certain conditions.\n\n\
  71. Usage:\tdocp [-abcdfghijlmnorstvwz?] source_dir target_dir [file list]\n\
  72.     -a - copy only files with archive bit set\n\
  73.     -b - batch mode\n\
  74.     -c - checks which files will be copied\n\
  75.     -d date_range (e.g. ao3/31/91) - copies files within date range\n\
  76.     -f filename - gets file list from filename\n\
  77.     -g - gather files recursively, but do not create subdirectories\n\
  78.     -h - copies hidden files also\n\
  79.     -i - interactively confirms copying each file\n\
  80.     -j - join files.  Append source to target (instead of overwriting target)\n\
  81.     -l - split large files if target is full\n\
  82.     -m - moves files\n\
  83.     -n - only copies newer files\n\
  84.     -o - only copies older files\n\
  85.     -no - only copies files not in target directory\n\
  86.     -r - recursively copies subdirectories as well\n\
  87.     -s - gets reference list from source directory\n\
  88.     -t - gets reference list from target directory\n\
  89.     -v - verbose, reports files copied\n\
  90.     -vv - extra verbose, reports files copied and not copied\n\
  91.     -w time_range (e.g. bo1:34pm) - copies files within time range\n\
  92.     -z - zap the target before copying\n\
  93.     -? - shows more complete information on 'docp'\n"
  94.